//
//  TravelsListModel.m
//  哎游
//
//  Created by 康守帅 on 15-1-4.
//  Copyright (c) 2015年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "TravelsListModel.h"

@implementation TravelsListModel

- (void)dealloc
{
    [_last_day release];
    [_user release];;
    [_cover_image_default release];;
    [_date_complete release];
    [_date_added release];
    [_ID release];
    [_popular_place_str release];
    [_view_count release];
    [_name release];
    [_first_day release];
    [_cover_image_1600 release];
    [_cover_image_w640 release];
    [_day_count release];
    [_recommendations release];
    [_cover_image release];
    [_userImage release];
    [_userName release];
    [super dealloc];
}

- (instancetype)initWithId:(NSNumber *)Id backImage:(NSString *)backImage title:(NSString *)title date:(NSNumber *)date dateNum:(NSNumber *)dateNum visits:(NSNumber *)visits address:(NSString *)address userImage:(NSString *)userImage userName:(NSString *)userName
{
    self = [super init];
    if (self) {
        self.ID = Id;
        self.cover_image_default = backImage;
        self.name = title;
        self.first_day = date;
        self.day_count = dateNum;
        self.view_count = visits;
        self.popular_place_str = address;
        self.userImage = userImage;
        self.userName = userName;
    }
    return self;
}

+ (instancetype)travelsListWithId:(NSNumber *)Id backImage:(NSString *)backImage title:(NSString *)title date:(NSNumber *)date dateNum:(NSNumber *)dateNum visits:(NSNumber *)visits address:(NSString *)address userImage:(NSString *)userImage userName:(NSString *)userName
{
    TravelsListModel *travels = [[TravelsListModel alloc] initWithId:Id backImage:backImage title:title date:date dateNum:dateNum visits:visits address:address userImage:userImage userName:userName];
    return [travels autorelease];
}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    
}

- (id)valueForKey:(NSString *)key
{
    return @"";
}





@end
